﻿using System.Web;
using System.Web.Optimization;

namespace WooCoo.Portal.WebPortal
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
                        "~/Scripts/knockout/knockout-{version}.js"));
            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.min.js",
                      "~/Scripts/respond.min.js"));

            bundles.Add(new StyleBundle("~/Content/css/bootstrap").Include(
                      "~/Content/bootstrap.min.css",
                //"~/Content/site.css",
                      "~/Content/style.css",
                      "~/Content/style-responsive.css",
                      "~/Content/style-metronic.css",
                      "~/Content/Themes/style-bootstrap.css")
                      );
            bundles.Add(new ScriptBundle("~/bundles/comlib").Include(
                 "~/Scripts/bootstrap.min.js",
                 "~/Scripts/respond.min.js",
                 "~/Scripts/knockout/knockout-{version}.js",
                 "~/Scripts/knockout/knockout.mapping.js",
                 "~/Scripts/utils.js",
                 "~/Scripts/com.js",
                 "~/Scripts/knockout/knockout.cusbindings.js",
                 "~/Scripts/showloading/jquery.showLoading.min.js"
                ));
            bundles.Add(new ScriptBundle("~/bundles/easyui").Include(
                "~/Scripts/easyui/jquery.easyui-1.3.6.min.js"
                ));
        }
    }
}
